﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SeaBattle.Web.Models.Account.LogOnModel>" %>
<script type="text/javascript">
    $(function () {
        $("input:submit", "#logOn").button();
    });
</script>
<div id="loginForm" style="text-align:center">
    <% Html.EnableClientValidation(); %>
    <%using (Html.BeginForm())
      {%>
    <div class="editor-label">
        Имя
    </div>
    <div class="editor-field">
        <%:Html.TextBoxFor(m => m.UserName)%>
    </div>
    <div class="editor-label">
        Пароль
    </div>
    <div class="editor-field">
        <%:Html.PasswordFor(m => m.Password)%>
    </div>
    <div id="logOn" style="float:right">
        <input type="submit" value="Войти" />
    </div>
    <%: Html.ValidationSummary(true, "Не удалось войти.")%>
    <%}%>
</div>
